﻿/*******************************************************************************
* Copyright (C) JuCheap
* 
* Author: JuCheap
* Create Date: 2019/12/26 11:15:39
* Description: <Description>
* 
* Revision History:
* Date         Author               Description
*
*********************************************************************************/

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace JuCheap.Core.Model
{
    /// <summary>
    /// 升级日志添加模型
    /// </summary>
    public class UpgradeLogAddDto
    {
        /// <summary>
        /// 升级标题
        /// </summary>
        [Display(Name = "升级标题")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(100, ErrorMessage = "{0}长度不能超过{1}个字符")]
        public string Title { get; set; }

        /// <summary>
        /// 升级日期
        /// </summary>
        public DateTime UpgradeDate { get; set; }

        /// <summary>
        /// 版本号
        /// </summary>
        [Display(Name = "版本号")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(20, ErrorMessage = "{0}长度不能超过{1}个字符")]
        public string Version { get; set; }

        /// <summary>
        /// 详细的升级项目描述
        /// </summary>
        public string Details { get; set; }
    }
}
